.PHONY:all
all:exec mycmd shell 
mycmd: mycmd.c
	gcc -o $@ $^

exec:exec.c
	gcc -o $@ $^

shell:shell.c
	gcc -o $@ $^

.PHONY:clean
clean:
	rm -f exec mycmd shell  
